﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="SpecialUpdForm.aspx.cs" Inherits="App_Input_SpecialUpdForm" Title="特殊任务登记" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript" type="text/javascript">
        function openEmployeeSrh(index){
            var url  = "../Commons/EmployeeSearchForm.aspx";
	        var prm;	        
	        prm = "?CONTROL_ID=" + "<%= txtEmpId.ClientID %>";
	        prm += "&CONTROL_NAME=" + "<%= txtEmpName.ClientID %>";	        
	        url += prm;	        
	        var win = window.open(url,'SpecialEmpSrhForm','scrollbars,resizable,height=460,width=500');
	        win.focus();	        	        
        }
        function openMemberSrh(index){
            var url  = "../Commons/MemberSearchForm.aspx";
	        var prm;	        
	        prm = "?CONTROL_ID=" + "<%= txtMemberId.ClientID %>";
	        prm += "&CONTROL_NAME=" + "<%= txtMemberName.ClientID %>";	        
	        url += prm;	        
	        var win = window.open(url,'SpecialMemSrhForm','scrollbars,resizable,height=460,width=500');
	        win.focus();	        	        
        }
        function openRoomSearch(controlId){
            var url  = "../Commons/RoomSearchForm.aspx";
	        var prm  = "?tID=" + controlId;
	        url += prm;
	        var win = window.open(url,'RoomSearchForm','scrollbars,resizable');
	        win.focus();
        }
                function settext(id,val){    
            window.document.getElementById(id).value = val;
        }
    </script>
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left">

                            <script language="javascript">
                                (new TitleBar('SearchBar', '特殊任务登记')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" nowrap="nowrap" style="width: 15%; height: 24px;">
                            &nbsp;
                            特殊任务编号：</td>
                        <td align="left" nowrap="nowrap" style="width: 28%; height: 24px;">&nbsp;<asp:Label
                            ID="lblSpecialId" runat="server"></asp:Label></td>
                        <td align="left" nowrap="nowrap" style="width: 20%; height: 24px;">&nbsp;</td>
                        <td align="left" nowrap="nowrap" style="width: 35%; height: 24px;"></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 10px; height: 24px;">&nbsp;</td>
                        <td style="" align="left" nowrap class="list_data_bg_left"><span style="color: #ff7300">
                            *</span>任务日期：</td>
                        <td style="" align="left" nowrap>&nbsp;<asp:TextBox ID="txtSpecialDate"
                            runat="server" Width="89px" onfocus="new Calendar(1900,2015,0,null).show(this);" MaxLength="10"></asp:TextBox></td>
                        <td align="left" style="" nowrap>&nbsp;<span style="color: #ff7300">*</span>任务责任人：</td>
                        <td align="left" style="" nowrap>&nbsp;<asp:TextBox
                            ID="txtEmpId" runat="server" Width="50px" MaxLength="4"></asp:TextBox>
                            <asp:TextBox ID="txtEmpName" runat="server" Width="50px" TabIndex="-1"></asp:TextBox>
                            <a href="#" onclick="javascript:openEmployeeSrh();">
                                <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px">&nbsp;</td>
                        <td class="list_data_bg_left" style="width: 126px; height: 24px;">&nbsp; 房间编号：</td>
                        <td style="width: 414px; height: 24px;">&nbsp;<asp:TextBox ID="txtRoomId" runat="server" Width="89px" MaxLength="13"></asp:TextBox>
                                <a href="#" onclick="javascript:openRoomSearch('<%= txtRoomId.ClientID %>');">
                                <img id="Img2" runat="server" src="../../images/search.jpg" border="0" />
                            </a>
                        </td>
                        <td style="width: 414px; height: 24px;">&nbsp; &nbsp;服务会员：</td>
                        <td style="width: 414px; height: 24px;">&nbsp;<asp:TextBox ID="txtMemberId" runat="server" Width="89px" MaxLength="13"></asp:TextBox>
                            <asp:TextBox ID="txtMemberName" runat="server" Width="50px" TabIndex="-1"></asp:TextBox>
                            <a href="#" onclick="javascript:openMemberSrh();">
                                <img id="Img1" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td style="HEIGHT: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 工作分类：</td>
                        <td style="width: 414px">&nbsp;<asp:DropDownList ID="lstChamberlaineType" runat="server"
                            Width="89px">
                        </asp:DropDownList></td>
                        <td style="width: 414px">&nbsp;&nbsp; 任务类型：</td>
                        <td style="width: 414px">&nbsp;<asp:DropDownList ID="lstSpecialType" runat="server"
                            Width="89px">
                        </asp:DropDownList></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 金额：</td>
                        <td style="width: 414px">&nbsp;<asp:TextBox ID="txtMoney" runat="server" Width="89px" MaxLength="7"></asp:TextBox></td>
                        <td style="width: 414px">&nbsp;&nbsp; 发票：</td>
                        <td style="width: 414px">
                            <asp:CheckBox ID="ckbInvoice" runat="server" /></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 送货地点：</td>
                        <td colspan="3">&nbsp;<asp:TextBox ID="txtAddress" runat="server" Width="50%" MaxLength="100"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"><span style="color: #ff7300">*</span>任务内容：</td>
                        <td style="" colspan="3">&nbsp;<asp:TextBox ID="txtContent" runat="server" Rows="3"
                            TextMode="MultiLine" Width="99%" MaxLength="400"></asp:TextBox></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 任务反馈：</td>
                        <td colspan="3">&nbsp;<asp:TextBox ID="txtMemo" runat="server" Rows="3" TextMode="MultiLine"
                            Width="99%" MaxLength="400" ReadOnly="True"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"></td>
                        <td colspan="3"></td>
                        <td></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="height: 15px"></td>
        </tr>
        <tr>
            <td align="center">
                <asp:Button ID="btnOk" runat="server" Text="  登 记  " Height="22px" Width="89px" CssClass="button"
                    OnClick="btnOk_Click" OnClientClick="return confirm('确定要登入数据吗？')" />&nbsp;
                <asp:Button ID="btnDel" runat="server" Text="  删 除  " Height="22px" Width="89px"
                    CssClass="button" OnClientClick="return confirm('确定要删除数据吗？')" OnClick="btnDel_Click" />&nbsp;
                <asp:Button ID="btnBack" runat="server" Text="  返 回  " Height="22px" Width="89px"
                    CssClass="button" OnClick="btnBack_Click" /></td>
        </tr>
    </table>
</asp:Content>
